/**
 * 1、数组去重
 * @param { Array } arr 
 * @returns 
 */
function unique(arr) { 

}
/**
* 获取URL地址中的参数
* @param url
* @returns {null}
*/
function serilizeURL(url) {
    let urlObject = {}
    if (/\?/.test(url)) {
        let urlString = url.substring(url.indexOf("?") + 1)
        let urlArray = urlString.split("&")
        for (let i = 0, len = urlArray.length; i < len; i++) {
            let urlItem = urlArray[i]
            var item = urlItem.split("=")
            urlObject[item[0]] = item[1]
        }
        return urlObject
    }
    return null
}
let url = "http://192.168.3.146:8010/wf_platform/rw/treelist/demo/index.tsp?objectName=RwTask!execute&objectEvent=Query&$bizId=execute&scene=all"
console.log(serilizeURL(url))